package 笔试记录.M8day31茄子科技;

import java.util.Scanner;

public class Solution1 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String[] arr = s.split(" ");
        int len = arr.length - 1;
        String res = "";
        while(len > 0){
            res = res +  arr[len] + " ";
            len--;
        }
        res += arr[0];
        System.out.println(res);
    }

}
